package com.fisher.checker.item;

public class ProductItem {
    //小时到毫秒08：55：241
    private String time;

    public String getProjectNo() {
        return projectNo;
    }

    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo;
    }

    private String projectNo;
    //产品编号
    private String productNo;

    //产品名称
    private String productNm;
    //零件条码
    private String productBarcode;
    //电子件条码
    private String electronPartBarcode;
    //电子件编号
    private String electronNo;
    //电子件name
    private String electronNm;

    //年月日 2023-11-22
    private String day;


    private boolean success;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getProductNm() {
        return productNm;
    }

    public void setProductNm(String productNm) {
        this.productNm = productNm;
    }

    public String getProductBarcode() {
        return productBarcode;
    }

    public void setProductBarcode(String productBarcode) {
        this.productBarcode = productBarcode;
    }

    public String getElectronPartBarcode() {
        return electronPartBarcode;
    }

    public void setElectronPartBarcode(String electronPartBarcode) {
        this.electronPartBarcode = electronPartBarcode;
    }

    public String getElectronNo() {
        return electronNo;
    }

    public void setElectronNo(String electronNo) {
        this.electronNo = electronNo;
    }

    public String getElectronNm() {
        return electronNm;
    }

    public void setElectronNm(String electronNm) {
        this.electronNm = electronNm;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String toSeparatedString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(projectNo);
        stringBuilder.append("-");
        stringBuilder.append(productNo);
        stringBuilder.append("\t ");
        stringBuilder.append(projectNo);
        stringBuilder.append(productNm);
        stringBuilder.append("\t ");
        stringBuilder.append(productBarcode);
        stringBuilder.append("\t ");
        if(electronNo!=null){
            stringBuilder.append(electronNo);
            stringBuilder.append("\t ");
            stringBuilder.append(electronNm);
            stringBuilder.append("\t ");
            stringBuilder.append(electronPartBarcode);
            stringBuilder.append("\t ");
        }
        stringBuilder.append(day);

        return stringBuilder.toString();
    }
}
